<?php 
class Me_Acl_Action extends Zend_Acl
{
	public function __construct()
	{
		$this->addRole( new Zend_Acl_Role("user") );
		$this->addRole( new Zend_Acl_Role("moderator") );
		$this->addRole( new Zend_Acl_Role("admin") );	
	
		$this->addResource( new Zend_Acl_Resource( "Auth" ) )	;
		$this->addResource( new Zend_Acl_Resource( "feature" ) );
	
		$this->allow("user", "auth", array( "index", "welcome" ));//Controller auth, action (index,welcome)
		$this->allow("moderator", "auth", array( "index", "welcome" ));//Controller auth, action (index,welcome)
		$this->allow("moderator", "feature", "list");//Controller feature, action (list)
		$this->allow("admin", null, null);//Full 
	}	
}